<div id="head"></div>

<style>
	#logo{
		height:50px;
		width:116px;
	}
	#headshop select{
		-webkit-border-radius:5px ; -moz-border-radius:5px;
		float:left;
		height:30px;
		top:30px;
		border-color:rgb(102,204,51);
		margin:2px 0px 0px 2px;
	}
	#leftfloat{
		height:35px;
		margin:2px 2px 0px 10px;
	}
	#search_box {
		width: 301px; 
		height: 34px; 
		background: url(__ROOT__/static/weixin/css/images/bg_search_box.gif); 
	} 
	#s { 
		float:left;
		padding: 0; 
		margin: 2px 0 0 6px; 
		border: 0; 
		height:30px;
		width: 175px; 
		background: none; 
		font-size: .8em; 
	} 
	#search_box #go { 
		float: right; 
		margin: 4px 4px 0 0;
	}
</style>

<div class="navlist2"></div>
<div id="nav">
	<ul class="navlist">
		<!-- li class="r" id="n_4"><a href="{:U('home/index/index', array('tokenTall'=>$tokenTall))}"><div class="home_page_logo"></div></a></li>
		<li class="r" id="n_4"><a href="__PARENTURL__/index.php?g=Wap&m=Index&a=index&token={$tokenTall}"><div class="home_page_logo"></div></a></li -->
    	<li id="n_0">
    		<a href="{:U('book/allcate',array('tokenTall'=>$tokenTall))}" ><span ></span></a>
        </li>
        <li class="r active" id="n_1">
            <!--a href="{:U('home/index/index', array('tokenTall'=>$tokenTall))}"><span></span></a-->
            <a href="__PARENTURL__/index.php?g=Wap&m=Index&a=index&token={$tokenTall}"><span></span></a>
        </li>
        <li class="r" id="n_2"><a href="{:U('user/index', array('tokenTall'=>$tokenTall))}"><span></span></a></li>
        <li class="r" id="n_3"><a href="{:U('shopcart/index', array('tokenTall'=>$tokenTall))}"><span></span></a><span class="baseBg J-shoping-num"><?php echo count($_SESSION['cart']);?></span></li>
        
    </ul>
    <script type="text/javascript">
    	$(".navlist > li#n_0").click(function(){
			$(this).toggleClass("active");
		});
		$(".navlist > li.r a").each(function() {
            href="index.php-app=member&act=login&ret_url=-index.php-app=member.htm"+$(this).attr("href");
			whref=window.location.href;
			if(whref.indexOf(href)!='-1'){
				$(this).parent("li").addClass("active");
			}
        });

    </script>
</div>